package com.example.springbootv1.controller;


import com.example.springbootv1.pojo.Student;
import com.example.springbootv1.service.SysResultService;
import com.example.springbootv1.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController// 自动返回json数据类型
@RequestMapping("/result")
@CrossOrigin(origins = "*")
public class ResultController {
    @Autowired
    private SysResultService resultService;

    @GetMapping("/getList")
    public Result getList(Student student) {

        return Result.success(resultService.getList(student));
    }
}
